<div class="row" ng-show="kt.isShowBtn">
    <div class="col-md-12">
        <div ba-panel ba-panel-class="with-scroll light-text" >
            <button has-perms='pdev.devgroup.add' ng-show="!kt.isShowAddBtn" class="btn btn-success btn-with-icon"   ui-sref="pdev.devgroup.add({id:kt.devgroup.id,isAdd:true})">
                <i class="ion-plus-round"></i>新增
            </button>
            <button has-perms='pdev.devgroup.edit' class="btn btn-warning btn-with-icon"  ui-sref="pdev.devgroup.edit({id:kt.devgroup.id})">
                <i class="ion-edit"></i>编辑
            </button>
            <button has-perms='pdev.devgroup.delete' ng-show="!kt.isShowDelBtn" class="btn btn-danger btn-with-icon" ng-click="kt.del(kt.devgroup.id)" >
                <i class="ion-trash-a"></i>删除
            </button>

        </div>
    </div>
</div>
<div class="row">
    <div class="col-md-6">
        <div ba-panel ba-panel-class="xmedium-panel with-scroll tree-panel light-text" ba-panel-title="设备分组树" ng-if="kt.treeshow">
            <div js-tree="kt.basicConfig" ng-model="kt.treeData" tree="kt.basicTree"></div>
        </div>
    </div>
    <div class="col-md-6">
        <div ba-panel ba-panel-class="xmedium-panel with-scroll light-text" ba-panel-title="设备分组明细">
            <form name="Form" class="form-horizontal">
                <div class="form-group">
                    <label for="name" class="col-md-3 control-label">分组名称</label>
                    <div class="col-md-7">
                        <input ng-disabled="true" type="text" class="form-control" id="name" placeholder="名称"
                               ng-model="kt.devgroup.name">
                    </div>
                </div>
                <div class="form-group">
                    <label for="title" class="col-md-3 control-label">标题</label>
                    <div class="col-md-7">
                    <input ng-disabled="true" type="text" class="form-control" id="title" placeholder="标题"
                           ng-model="kt.devgroup.title">
                    </div>
                </div>
                <div class="form-group">
                    <label for="order" class="col-md-3 control-label">排序号</label>
                    <div class="col-md-7">
                    <input ng-disabled="true" type="text" class="form-control" id="order" placeholder="排序号"
                           ng-model="kt.devgroup.order">
                    </div>
                </div>
                <div class="form-group" ng-if="kt.isShowType">
                    <label for="type" class="col-md-3 control-label">类型</label>
                    <div class="col-md-7">
                    <select ng-disabled="true" class="form-control" ng-model="kt.devgroup.type" id="type"
                            title="类型" data-container="body" selectpicker
                            ng-options="item.value as item.label for item in kt.types">
                    </select>
                </div>
            </form>
        </div>
    </div>
</div>
